<?php

use my\bq\criterion\FiledTranslater;
use my\bq\criterion\property;
use my\bq\criterion\Relation;
use my\bq\criterion\Group;
use my\bq\criterion\Order;
use my\bq\criterion\LogicalExpression;
use my\bq\criterion\SimpleExpression;
use my\bq\criterion\CriteriaImpl;
use my\bq\criterion\InExpression;
use my\bq\criterion\Criteria;
use my\bq\criterion\Restrictions;
use my\bq\criterion\CriteriaQuery;
use my\bq\criterion\Projections;
use my\bq\criterion\Join;


use dao\RegionDao;
use entity\MyService;
class BunnyQueryORMTester extends PHPUnit_Framework_TestCase{


	public $regionDao;

	function CriterionLazyTester(){
		parent::__construct();
	}


	function setup(){
		$this->regionDao = new RegionDao();
	}
	


	//for BunnyQuery 2.0
	function test_BQ2_0(){

		//级联表查询
		$myService = new MyService();
		$rs1 = $myService->findGoods();
		$rs2 = $myService->findStyle();
		$rs3 = $myService->findUser();
		$bool = $myService->updateStyle($rs2);
		$rs2 = $myService->findStyle();
		$rs1->user_id;
		$rs1->user;
		$bool = $myService->deleteStyle($rs1);
		$bool = $myService->saveStyle($rs3);

	}





}

class foo{
	private $a = 112;
	private $b = 12;
	private $c = 11;
	private $d = 102;
	
	public function __get($a){
		$ab = ($this->$a);
		$ab = 500;
		return $ab;
	}
	
}

